const findFirstNode = (nodes)=>{
  let node = null;
  if(nodes && nodes.length > 0) {
    node = nodes[0];
    while(node.children && node.children.length > 0) {
      node = node.children[0];
    }
  }
  return node;
}

export { findFirstNode }
